#define _CRT_SECURE_NO_WARNINGS
#include"SeqList.h"
void test1()
{
	SL s1;
	SeqListInit(&s1);
	SeqListPushBack(&s1, 1);
	SeqListPushBack(&s1, 2);
	SeqListPushBack(&s1, 3);
	SeqListPushFront(&s1, 2);
	SeqListPushFront(&s1, 3);
	SeqListPopBack(&s1);
	SeqListPopFront(&s1);
	SeqListPopBack(&s1);
	SeqListPopFront(&s1);
	SeqListPopBack(&s1);
	SeqListPrint(&s1);
	SeqListDestroy(&s1);
}

void test2()
{
	SL s2;
	SeqListInit(&s2);
	SeqListPushBack(&s2, 0);
	SeqListPushBack(&s2, 1);
	SeqListPushBack(&s2, 2);
	SeqListPushBack(&s2, 3);
	SeqListPushBack(&s2, 4);
	printf("%d\n", SeqListFind(&s2, 3));
	SeqListDestroy(&s2);
}
void test3()
{
	SL s3;
	SeqListInit(&s3);
	SeqListPushBack(&s3, 1);
	SeqListPushBack(&s3, 2);
	SeqListPushBack(&s3, 3);
	SeqListPushFront(&s3, 2);
	SeqListPushFront(&s3, 3);
	SeqListInsert(&s3, 3, 4);
	SeqListPrint(&s3);
	SeqListErase(&s3, 2);
	SeqListPrint(&s3);
	SeqListDestroy(&s3);
}
int main()
{
	//test1();
	//test2();
	test3();
	return 0;
}